package com.qxp.simplerpc.utils;

import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;

public class ProtocolUtils {
    public static String withHttp(String url) throws  URISyntaxException {
        return "http://" + url;
    }

    public static String withHttps(String url) throws URISyntaxException {
        return "https://" + url;
    }

    public static String withFtp(String url) throws URISyntaxException {
        return "ftp://" + url;
    }
}
